package com.lineage.data.item_etcitem.event;

import com.lineage.data.executor.ItemExecutor;
import com.lineage.server.model.Instance.L1ItemInstance;
import com.lineage.server.model.Instance.L1PcInstance;
import com.lineage.server.model.skill.L1BuffUtil;
import com.lineage.server.serverpackets.S_ServerMessage;
import com.lineage.server.serverpackets.ServerBasePacket;

public class ExpTime extends ItemExecutor {
  public static ItemExecutor get() {
    return new ExpTime();
  }
  
  public void execute(int[] data, L1PcInstance pc, L1ItemInstance item) {
    if (item == null)
      return; 
    if (pc == null)
      return; 
    if (L1BuffUtil.cancelExpSkill(pc))
      pc.sendPackets((ServerBasePacket)new S_ServerMessage("\\fX目前没有第一段经验药水的效果。")); 
    if (L1BuffUtil.cancelExpSkill_2(pc))
      pc.sendPackets((ServerBasePacket)new S_ServerMessage("\\fY目前没有第二段神力药水的效果。")); 
  }
}
